/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package taobaohelper;

import javax.swing.UIManager;
import javax.swing.plaf.FontUIResource;
import taobaohelper.ui.MainFrm;

/**
 *
 * @author mrgaolei
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        setUIFont(new FontUIResource("simsun", 0, 12));
        MainFrm mainFrm = new MainFrm();
        mainFrm.setVisible(true);
        mainFrm.setSize(1024, 640);
        mainFrm.setLocationRelativeTo(null);
    }

    	public static void setUIFont(FontUIResource f) {
		java.util.Enumeration keys = UIManager.getDefaults().keys();
		while (keys.hasMoreElements()) {
			Object key = keys.nextElement();
			Object value = UIManager.get(key);
			if (value instanceof javax.swing.plaf.FontUIResource) {
				UIManager.put(key, f);
			}
		}
	}

}
